<?php
echo $javascript->link('jquery');
?>
 <script type="text/javascript">
	$(function()
	{
		$("#close").click(function(){		
			window.close();							
		});
	});
</script>

<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Customer Managements');//一级目录
										   echo '>';
										   echo __('Customer Managements');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Send Email',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->

<div class="tabflex">
<?php
	echo $form->create('Uesemail',array('action'=>"sendMail",'type'=> 'post','enctype'=>'multipart/form-data','id'=>'f22'));
?>
<fieldset><legend>发给客户</legend>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
		<tr>
			<td width="50"></td>
			<td width="100"><?php __('Email consignee');//收件人?>:</td>
			<td width="621"><?php echo $form->text('to',array('default'=>$email['Email']['to'],'class'=>'TextBoxL'))?></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td><?php __('Email sender');//发件人?>:</td>
			<td width="621"><?php echo $form->text('from',array('default'=>$mail[0]['Uesemail']['yourEmail'],'class'=>'TextBoxL'))?></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td><?php __('subject');//主题?>:</td>
			<td width="621"><?php echo $form->text('subject',array('default'=>$email['Email']['subject'],'class'=>'TextBoxL'))?></td>
			<td></td>
		</tr>
		<tr>
			<td ></td>
			<td valign="top"><?php __('Email Content');//邮件正文?>:</td>
			<td width="621">
		<?php echo $form->textarea('content',array('id'=>'main_content','style'=>'display:none'));?>
		<iframe src="<?php echo ROOT_WEB_PATH; ?>/edit/editor.htm?id=main_content&ReadCookie=0" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" width="621" height="457"></iframe></td>
			<td ></td>
		</tr>
		<tr>
			<td></td>
			<td><?php __('Email Attachment');//附件?>:</td>
			<td width="621"><?php echo $form->file('Attachment',array('label'=>false,'size'=>50,'name'=>'Attachment','id'=>'ff','class'=>'TextBoxL'));?></td>
			<td></td>
		</tr>
</table>
</fieldset>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('发送邮件',array('type'=>'submit','class'=>'oksubmit'));?>
		<td width="100"><?php echo $form->button('关闭',array('class'=>'cancelbutton','id'=>'close'));?>
		</td>
	</tr>
	</table>

	<?php echo $form->end();?>
</div>

